package com.chw.shop.controller;

import com.chw.common.returnData.ReturnData;
import com.chw.shop.entity.po.ShopArea;
import com.chw.shop.service.ShopAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("shopArea")
public class ShopAreaController {
    @Resource
    private ShopAreaService service;
    @RequestMapping("addShopArea")
    public ReturnData addShopArea(ShopArea shopArea){

        service.addShopArea(shopArea);
        return  ReturnData.success("");
    }
}
